<template>
  <div class="nav-bar">
    <router-link class="nav-item" to="/home">home</router-link>
    <router-link class="nav-item" to="/about">about</router-link>
    <slot name="right-content"></slot>
  </div>
</template>

<script>
export default {
  name: "NavTab",
  props: {},
  setup(props, context) {
    return {};
  },
};
</script>

<style scoped lang="less">
.nav-bar {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  .nav-item {
    margin-right: 20px;
    font-size: 14px;
    padding: 4px 0;
    color: #999999;
    border-bottom: solid 1px transparent;
    transition: all .3s;
  }
  .router-link-active {
    color: #000;
    border-bottom-color: #000;
  }
}
</style>
